t = list(input())
count = 0
if len(t)>=10:
for i in range(len(t)):
d = (i+1)*int(t[i])
count+=d
if count%11==0:
print('Legal ISBN')
else:
print('Illegal ISBN')
else:
print('Illegal ISBN')
Teddy and Tweety | Partitioning binary strings |
Special sets | Smallest chosen word |
Going to office | Color the boxes |
Missing numbers | Maximum sum |
13 Reasons Why | Friend's Relationship |
Health of a person | Divisibility |
A. Movement | Numbers in a matrix |
Sequences | Split houses |
Divisible | Three primes |
Coprimes | Cost of balloons |
One String No Trouble | Help Jarvis! |
Lift queries | Goki and his breakup |
Ali and Helping innocent people | Book of Potion making |
Duration | Birthday Party |
e-maze-in | Bricks Game |